/**
 * @author gaopeng
 * @date 2019/12/12 11:04 下午
 */
public class Purchase extends AbstractColleague{

    public Purchase(AbstractMediator mediator) {
        super(mediator);
    }

    /**
     * 采购电脑
     * @param number 数量
     */
    public void buyComputer(int number){
        super.mediator.execute("purchase.buy",number);
    }

    public void refuseBuyComputer(){
        System.out.println("不要采购电脑了。");
    }
}
